删除无用lib

chengzhenyu 7 years ago
parent
commit
fbd1818e05

+ 0 - 7
app/src/main/AndroidManifest.xml

@@ -127,13 +127,6 @@
127 127
             android:label="@string/app_name"
128 128
             android:screenOrientation="portrait"/>
129 129
 
130
-
131
-        <activity
132
-            android:name=".wxapi.WXEntryActivity"
133
-            android:exported="true"
134
-            android:launchMode="singleTop"
135
-            android:theme="@android:style/Theme.NoDisplay" />
136
-
137 130
         <service android:name=".service.UpgradeService" />
138 131
 
139 132
         <service android:name=".service.UploadService" />

+ 0 - 54
app/src/main/java/ai/pai/lensman/wxapi/WXEntryActivity.java

@@ -1,54 +0,0 @@
1
-package ai.pai.lensman.wxapi;
2
-
3
-import android.app.Activity;
4
-import android.content.Intent;
5
-import android.os.Bundle;
6
-
7
-import com.android.common.utils.LogHelper;
8
-import com.tencent.mm.sdk.modelbase.BaseReq;
9
-import com.tencent.mm.sdk.modelbase.BaseResp;
10
-import com.tencent.mm.sdk.modelmsg.SendAuth;
11
-import com.tencent.mm.sdk.openapi.IWXAPI;
12
-import com.tencent.mm.sdk.openapi.IWXAPIEventHandler;
13
-import com.tencent.mm.sdk.openapi.WXAPIFactory;
14
-
15
-import ai.pai.lensman.db.Preferences;
16
-
17
-public class WXEntryActivity extends Activity implements IWXAPIEventHandler {
18
-
19
-    private IWXAPI api;
20
-
21
-    @Override
22
-    public void onCreate(Bundle savedInstanceState) {
23
-        super.onCreate(savedInstanceState);
24
-        api = WXAPIFactory.createWXAPI(this, "wxf4832536d9dda70a");
25
-        api.handleIntent(getIntent(), this);
26
-    }
27
-
28
-
29
-    @Override
30
-    protected void onNewIntent(Intent intent) {
31
-        super.onNewIntent(intent);
32
-        setIntent(intent);
33
-        api.handleIntent(intent, this);
34
-        finish();
35
-    }
36
-
37
-    @Override
38
-    public void onReq(BaseReq baseReq) {
39
-
40
-    }
41
-
42
-    @Override
43
-    public void onResp(BaseResp resp) {
44
-
45
-        if(resp instanceof SendAuth.Resp){
46
-            SendAuth.Resp newResp = (SendAuth.Resp) resp;
47
-            String code = newResp.code;
48
-            Preferences.getInstance().setWXCode(code);
49
-            LogHelper.d("czy","WXEntryActivity  onResp wx code = "+code);
50
-            finish();
51
-        }
52
-    }
53
-
54
-}